package com.wtpaint.design.creational.prototype;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Mail mail = new Mail();
        for (int i = 0; i < 10; i++) {
            mail = (Mail) mail.clone();
            mail.setContent("第" + i + "个主要内容");
            mail.setEmailAddress("第" + i + "个地址");
            mail.setName("第" + i + "名字 ");
            MailUtil.sendMail(mail);
        }
    }
}
